using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Transaction
{
   
    public class LoansAmortizeDetail 
    {
        #region Properties
              // LOANS_AMORTIZE_DETAIL_ID
        public virtual int LoansAmortizeDetailID { set; get; }
      // INTEREST_ID
        public virtual int? InterestID { set; get; }
      // LOANS_HEADER_ID
        public virtual int? LoansHeaderID { set; get; }
      // PERIOD
        public virtual int? Period { set; get; }
      // DATE
        public virtual DateTime? Date { set; get; }
      // NO_OF_DAYS
        public virtual int? NOOFDays { set; get; }
      // INTEREST_RATE
        public virtual decimal? InterestRate { set; get; }
      // BEGINNING_BALANCE
        public virtual decimal? BeginningBalance { set; get; }
      // ENDING_BALANCE
        public virtual decimal? EndingBalance { set; get; }
      // PRINCIPAL
        public virtual decimal? Principal { set; get; }
      // INTEREST
        public virtual decimal? Interest { set; get; }
      // INSTALLMENT
        public virtual decimal? Installment { set; get; }
      // PERIOD_CAL
        public virtual int? PeriodCal { set; get; }
      // CREATE_DATE
        public virtual DateTime? CreateDate { set; get; }
      // CREATE_BY
        public virtual String CreateBY { set; get; }
      // MODIFY_DATE
        public virtual DateTime? ModifyDate { set; get; }
      // MODIFY_BY
        public virtual String ModifyBY { set; get; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(LoansAmortizeDetail) && !(obj is LoansAmortizeDetail))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",LoansAmortizeDetailID);
        }

    }


}